import { DictVO } from '@/common/vo';
import Axios from '@/utils/request';
import { MonitorResultDTO, MonitorResultRepVO } from '../vo/monitor-result';

export default class API {
    /**
     * 查询数据比较结果概况
     * @source 
     */
    static getMonitorResultList(data: MonitorResultDTO): Promise<MonitorResultRepVO> {
        return Axios.post('/audit/comparatorResult/queryComparatorResultList', data)
    }

    /**
     * 获取监控规则总览图表
     * @source 
     */
    static getMonitorResultChart1(): Promise<any> {
        return Axios.post('/audit/comparatorResult/queryComparatorResultByAll')
    }

    /**
     * 获取监控数据总览图表
     * @source 
     */
    static getMonitorResultChart2(): Promise<any> {
        return Axios.post('/audit/comparatorResult/queryComparatorResultByRule')
    }

    /**
     * 根据监控规则汇总对比条数
     * @source 
     */
    static queryComparatorResultByGroup(): Promise<any> {
        return Axios.post('/audit/comparatorResult/queryComparatorResultByGroup')
    }

    /**
     * 获取详情异常数量进度条
     * @source 
     */
    static getDetailSum(data): Promise<any> {
        return Axios.post('/audit/comparatorResult/queryComparatorResultByRuleId', data)
    }

    /**
     * 获取数据比较结果详情表格数据
     * @source 
     */
    static getMonitorResultDetail(data: any): Promise<any> {
        return Axios.post('/audit/comparatorResult/queryComparatorResultDetailList', data)
    }

    /**
     * 获取数据比较结果详情表头
     * @source 
     */
    static getMonitorResultDetailHead(id: string): Promise<any> {
        return Axios.post(`/audit/comparatorResult/queryComparatorResultDetailListHead/${id}`)
    }
}
